<?php
  // game items
  require_once dirname(__FILE__)."/../purin2/core/core.php";
  require_once dirname(__FILE__)."/../purin2/xtr/xtr.php";
  
  puXtrBegin('List of all available game items');
  puXtrInputs();
  puXtrOutputs(
    'i_eqty','integer','Equipment type serial',
    'i_eqlo','integer','Equipment location serial',
    'v_eqlo','string','Equipment location name',
    'v_sprite','string','Equipment sprite xml file name',
    'v_name','string','Equipment name',
    'i_red','integer','Red multiplier',
    'i_green','integer','Green multiplier',
    'i_blue','integer','Blue multiplier'
  );
  puXtrRowsSql("select i_eqty, i_eqlo, v_eqlo, v_sprite, v_name, i_red, i_green, i_blue from eqty, eqlo where j_eqlo=i_eqlo order by v_name",1);
  puXtrEnd(0,'Successfull');
?>